<?php
/**
 * Created by PhpStorm.
 * User: hantian
 * Date: 2017/8/30
 * Time: 下午4:19
 */


namespace App\Services;

use zgldh\QiniuStorage\QiniuStorage;

final class QiniuService
{
    public static function getQiniuToken(){
        $disk = QiniuStorage::disk('qiniu');
        return $disk->uploadToken();
//        $accessKey = Config::get('filesystems.disks.qiniu.key');
//        $secretKey = Config::get('filesystems.disks.qiniu.secret');
//        $auth = new Auth($accessKey, $secretKey);
//        $token = $auth->uploadToken(Config::get('filesystems.disks.qiniu.bucket'));
//        return $token;
    }
}